﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfCustBought.aspx.cs" Inherits="msBsc.WebUi.Custom.wfCustBought" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>客户订单管理</title> 
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/custht.css" />
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js,jqPlugin/laydate/laydate.js,themes/Style1/jsBought.js"
        type="text/javascript"></script>
    <!--head fix rgn-->
    <script type="text/javascript">
        $(window).load(function () {
//            $.ploadFile("Bought",function (script, textStatus) {
//                $.setBoughtRowHover("J_BoughtTable");
//            });



        }); 
    </script> 
</head>
<body>
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoHtml("会员中心")%> 
            <div id="content" class="content" style=" border-top:0px solid #eee; padding-top:3px;">
        <div class="page lang-zh-S"> 



 <div id="mytaobao-panel" class="grid-c2">
 <div class="col-main" id="J_Col_Main" style="padding-bottom: 0;">
 <div class="bought">



<div class="main-wrap">
 <input id="J_ShareParam" type="hidden" value="{&quot;client_id&quot;:&quot;004&quot;}">
 <span class="mytaobao-rc-tp"><span></span></span>

 <div id="main-content">

     
<div class="trade-remind" id="J_navbar">
   <ul class="list">
 
 <li class="selected first"  data-spm="">
 <a class="link" href="javascript:void(0);"  ><span>所有订单</span>
 <i class="interval">|</i></a>
 </li>

 <li data-spm="待付款">
 <a class="link" href="javascript:void(0);"><span>待付款</span><em class="tm-h" id="emD2">0</em><i class="interval">|</i></a>
 </li>

 <li data-spm="待发货">
 <a class="link" href="javascript:void(0);"><span>待发货</span><em class="tm-h" id="emD3">0</em><i class="interval">|</i></a>
 </li>

 <li data-spm="待收货">
 <a class="link" href="javascript:void(0);"><span>待收货</span><em class="tm-h" id="emD4">0</em><i class="interval">|</i></a>
 </li>

 <li data-spm="退款中">
 <a class="link" href="javascript:void(0);"><span>退款中</span><em class="tm-h" id="emD5">0</em><i class="interval">|</i></a>
 </li>

 <li data-spm="待评价">
 <a class="link" href="javascript:void(0);"><span>待评价</span><em class="tm-h" id="emD6">0</em><i class="interval">|</i></a>
 </li>

   
       <%--
 <li class="last ">
 <a id="J_orderRecyleBin" class="recycle J_MakePoint" href="/" data-spm="d8" >订单回收站</a>
 </li>--%>
 </ul>
   
 <div class="wrap-line">
 <span class="line " style="left:0px;"></span>
 </div>
</div>

   
<div class="searchbar">
 <form class="skin-gray clearfix bought-search " action="?search" method="post" id="J_QueryConditionForm">
<%-- <input id="submitNameId" type="hidden" name="event_submit_do_query" value="1">
 <input type="hidden" id="myAction" name="action" value="itemlist/QueryAction">
 <input type="hidden" name="user_type" value="0">
 <input type="hidden" id="order" name="order" value="">
 <input type="hidden" id="visibility" name="visibility" value="">
 <input type="hidden" id="J_FormExpandCls" name="wrap" value="">--%>
 
 <div class="simple">
 <input type="text" size="50" id="J_BaobeiName" class="auction-title" name="auctionTitle" value="" maxlength="30"  >
 <span class="search-btn">
 <button class="J_MakePoint button" type="button"  >订单搜索</button>
 </span>
 <span class="search-opt" id="J_SearchBoxToggle">
 <a href="#" class="J_MakePoint show-whole"  >
 更多筛选条件
 <i><em></em><span></span></i>
 </a>
 <a href="#" class="J_MakePoint show-simple"  >
 精简筛选条件<i><em></em><span></span></i>
 </a>
 </span>
 </div>

 <div id="J_MoreControl" class="whole">
 <ul>
   <li class="col1">
 <label>订单编号：</label>
 <input type="text" name="sellerNick" size="15" id="txtORDER_FORM_NO" class="seller-nick" value="">
 </li>
 <li class="col2"> 
 <label>成交时间：</label>
 <input type="text" size="10" id="txtSTART_DT" class="trade-time" name="bizOrderTimeBegin" value="" onclick="laydate()">
 到 <input type="text" size="10" id="txtEND_DT" class="trade-time" name="bizOrderTimeEnd" value="" onclick="laydate()">
 </li>
 <li class="col3">
 <label for="J_NickName"> 卖家昵称：</label>
 <input type="text"  size="15" id="txtCOMM_TENANT_NME" class="seller-nick" value="">
 </li>
 <li class="col1">
 <label for="dplREVIEW_STATUS_TXT">评价状态：</label>  
 <select id="dplREVIEW_STATUS_TXT" class="seller-nick"  style="width:140px; height:28px;">    
 <option value="">全部</option>
 <option value="需买家评价">需买家评价</option>
 <option value="需卖家评价">需卖家评价</option>
 <option value="买家已评">买家已评</option>
 <option value="卖家已评">卖家已评</option> 
 <option value="双方已评">双方已评</option>
 </select>    
 </li>  
 <li class="col2">
 <label for="dplTRADE_STATUS_TXT">交易状态：</label> 
 <select id="dplTRADE_STATUS_TXT" class="seller-nick"    style="width:140px; height:28px;">
 <option value="">全部</option>
 <option value="等待买家付款">等待买家付款</option>
   <option value="买家已付款">买家已付款</option>
 <option value="卖家已发货">卖家已发货</option>
 <option value="交易成功">交易成功</option>
 <option value="交易关闭">交易关闭</option>
 <option value="退款中的订单">退款中的订单</option>
 </select>
 </li>
 <li class="col3">
 <label for="dplAFTER_SVC_STATUS_TXT">售后服务：</label> 
 <select  class="seller-nick" id="dplAFTER_SVC_STATUS_TXT"   style="width:140px; height:28px;">
 <option value=""> 全部</option>
 <option value="已投诉">已投诉</option>
 <option value="退款中">退款中</option>
 </select>
 </li>
   </ul>
 <button id="J_SearchBox_Submmit" class="J_MakePoint extended-submit" type="button"  >搜索</button>
 </div>
 
 </form> 
</div>

 <div class="bought-list SCREEN1360">
   <form action="" method="post" id="J_BoughtListForm" autocomplete="off">
 <input id="datacurrpage" type="hidden" value="1"> 

 <table class="bought-table" id="J_BoughtTable" style=" background-color:#ffffff;" >

   
<colgroup>
 <col class="baobei">
 <col class="price">
 <col class="quantity">
 <col class="item-operate">
 <col class="amount">
 <col class="trade-status">
 <col class="trade-operate">
</colgroup>
<thead>
 <tr class="col-name">
 <th class="baobei">宝贝</th>
 <th class="price">单价(元)</th>
 <th class="quantity">数量</th>
 <th class="item-operate">商品操作</th>
 <th class="amount">实付款(元)</th>
 <th class="trade-status">
<div class="trade-status">
<div id="ks-component1690" class="bf-select bf-menu-button bf-button

" tabindex="0" role="button" title="" aria-describedby="" aria-expanded="false" aria-haspopup="true" style="width: 86px; height: 15px; -webkit-user-select: none;"><div id="ks-content-ks-component1690" class="bf-select-content bf-menu-button-content bf-button-content" style="-webkit-user-select: none;">交易状态</div>
<div class="bf-select-dropdown bf-menu-button-dropdown bf-button-dropdown">
    <div class="bf-select-dropdown-inner bf-menu-button-dropdown-inner bf-button-dropdown-inner">
    </div>
</div></div><select id="J_TradeStatusHandle" class="J_NiceSelect" data-config="{&quot;w&quot;: 86, &quot;h&quot;: 15}" style="display: none;">
<option data-msg="交易状态" value="ALL">交易状态</option>
<option data-msg="等待买家付款" value="NOT_PAID">等待买家付款</option>
<option data-msg="买家已付款" value="PAID">买家已付款</option>
<option data-msg="卖家已发货" value="SEND">卖家已发货</option>
<option data-msg="交易成功" value="SUCCESS">交易成功</option>
<option data-msg="交易关闭" value="DROP">交易关闭</option>
<option data-msg="退款中的订单" value="REFUNDING">退款中的订单</option>
</select>

</div>
 </th>
 <th class="trade-operate">交易操作</th>
 </tr>
 <tr class="sep-row"><td colspan="9"></td></tr>
 <tr class="toolbar toolbar-top">
 <td colspan="7">
 <div class="operates">
<label><input type="checkbox" class="J_AllSelector all-selector">全选</label>
 <a href="javascript:void(0)" class="J_BatchReceive J_MakePoint toolbtn long-toolbtn" >批量确认收货</a>
 
  </div>
 <div class="paging-box paging-simple">

  

</div>
</td>
 </tr>
</thead>  
 
     <tfoot>
         <tr class="sep-row">
             <td colspan="7">
             </td>
         </tr>
         <tr class="toolbar toolbar-bottom">
             <td colspan="7">
                 <div class="operates">
                     <label>
                         <input type="checkbox" class="J_AllSelector all-selector">全选</label>
                  <%--   <a href="javascript:void(0)" class="J_CombinPay J_MakePoint toolbtn" >合并付款</a> --%>
                     <a href="javascript:void(0)" class="J_BatchReceive J_MakePoint toolbtn long-toolbtn" >批量确认收货</a>
                 </div>
                 <div class="paging-box paging-full" id="J_trade_pagenation">
                     <ul class="items">
                         <li class="item prev  prev-disabled "><a class="num "><span class="icon"></span></a></li>
                         <li class="item active" pagenum="1">1 </li>
                         <li class="item"><a class="num " href="javascript:void(0);">2 </a></li>
                         <li class="item"><a class="num " href="javascript:void(0);" >3 </a></li>
                         <li class="item"><a class="num " href="javascript:void(0);" >4 </a></li>
                         <li class="item"><a class="num " href="javascript:void(0);" >5 </a></li>
                         <li class="item dot">...</li>
                         <li class="item next "><a class="num  J_MakePoint " href="javascript:void(0);" ><span class="icon"></span></a></li>
                     </ul>
                     <div class="total">
                         共 9 页，
                     </div>
                     <div class="form">
                         <span class="text">到第</span>
                         <input class="input" type="number" value="1" min="1" max="1">
                         <span class="text">页</span> <span class="button J_MakePoint " id="J_JumpTo"  >确定</span>
                     </div>
                 </div>



             </td>
         </tr>
     </tfoot>
 </table>
 

   </form></div><!--end bought-list-->

 </div><!--end main-content-->

</div> <!--end main-wrap-->

<span class="mytaobao-rc-bt"><span></span></span>
 </div>
 </div>
 <!-- end col-main -->

   <div class="col-sub" id="J_Col_Sub">

            <%=new msBsc.WebUi.Code.QtHtmlGet().GetCustomMenu()%>
 </div>
 </div><!-- end mytaobao-panel -->
  




            </div>
        </div>

        
        <div class="form-box" id="J_FormBox" style="width:auto;display:none;"> 
            <div class="item item-title">
                <span class="item-label">追评内容： </span>(可以输入500个字符，一个汉字等于2个字符) 
            </div>
            <div class="item " id="J_ItemStreet"> 
                <div class="ks-combobox" id="J_ComboboxStreet">
                    <div class="ks-combobox-input-wrap">
                        <textarea class="ks-combobox-input i-ta" id="txtSELLER_REPLY1" style="height:300px;width:600px;"></textarea>
                    </div>
                </div>
            </div>
            <div class="item" style="width:auto; text-align:center; padding:3px;"> 
                <button type="button" class="btn" onclick="doSellerReply();" style=" margin-left:10px;">
                    保存</button>
            </div>
            <input id="txtORDER_LIST_ID" type="text" value="" style="display: none;" /> 
        </div>
        <!-- template -->
        <textarea id="list_temp" style="display: none;">   
        {{# if(d.rows.length == 0){ }} 
    <tbody class="msg-box"> 
     <tr class="sep-row">
     <td colspan="9">
     </td>
     </tr>
     <tr> 
     <td colspan="9"> 
 
     <div class="no-result-box layout-center"> 
       没有符合条件的宝贝，请尝试其他搜索条件。
       </div> 
  
     </td> 
     </tr> 
    </tbody>   

        {{#} else {}} {{# for(var i = 0, len = d.rows.length; i < len; i++){ }} 

    <tbody class="  {{# if(d.rows[i].TRADE_STATUS_TXT=='交易关闭'){ }} close-order {{# }else{ }}  {{#}}}   {{# if(d.rows[i].TRADE_STATUS_TXT=='交易成功'){ }} success-order {{# }else{ }}  {{#}}}    {{# if(d.rows[i].rCount>1){ }} combo-order {{# }else{ }}  {{#}}}">
        <tr class="sep-row">
            <td colspan="7">
            </td>
        </tr>
        <tr class="order-hd">
            <td class="first">
                <div class="summary">
                    <span>
                        <input type="checkbox" class="J_Selector selector"   name="biz_order_id"
                            value="{{ d.rows[i].ORDER_FORM_ID }}" >
                    </span><span class="dealtime" title="{{ d.rows[i].INITIAL_DT }}">{{ d.rows[i].INITIAL_DT }}</span> <span class="number last-item">
                        订单号：<em>{{ d.rows[i].ORDER_FORM_NO }}</em></span>
                </div>
            </td>
            <td class="column" colspan="2">
                <span class="g-u"><a href="#" >
                     </a>
                </span><a target="_blank" class="shopname J_MakePoint" title="{{ d.rows[i].COMM_TENANT_NME }}" href="/c_ShopView.htm?ID={{ d.rows[i].COMM_TENANT_ID }}" >
                    {{ d.rows[i].COMM_TENANT_NME }}</a>
            </td>
            <td class="column">
                <span class="ww-light ww-large"  >
                    <a href="#"  target="_blank" class="ww-inline ww-online" title="点此可以直接和卖家交流选好的宝贝，或相互交流网购体验，还支持语音视频噢。" ><span></span></a></span>
            </td>
            <td class="last" colspan="3">
                <div class="operates">

            {{# if(d.rows[i].TRADE_STATUS_TXT=='交易关闭'){ }} 
                <a class="J_DelOrder J_MakePoint del"   href="javascript:void(0)" target="_self" onclick="doaction('dodeleteorder','{{ d.rows[i].ORDER_FORM_ID }}');" title="删除" >删除</a>
            {{# }else{ }}  {{#}}}

            {{# if(d.rows[i].TRADE_STATUS_TXT=='交易成功'){ }} 
                <a class="J_DelOrder J_MakePoint del"   href="javascript:void(0)" target="_self" onclick="doaction('dodeleteorder','{{ d.rows[i].ORDER_FORM_ID }}');" title="删除" >删除</a>   
            {{# }else{ }}  {{#}}}

                </div> 
            </td>
        </tr>
            {{# for(var r = 0, lenr = d.rows[i].rows.length; r < lenr; r++){ }}
        <tr   class="order-bd   {{# if(d.rows[i].rCount==r+1){ }} last order-last {{# }else{ }}  {{#}}} ">
            <td class="baobei">
                <a target="_blank"  title="查看宝贝详情" href="/c_GoodsView.htm?ID={{ d.rows[i].rows[r].GOODS_ID }}"
                    class="pic J_MakePoint"  >
                    <img alt="查看宝贝详情" src="{{ d.rows[i].rows[r].IMG_URL }} ">
                </a>
                <div class="desc">
                    <p class="baobei-name">
                        <a target="_blank" href="/c_GoodsView.htm?ID={{ d.rows[i].rows[r].GOODS_ID }}"
                            class="J_MakePoint"  >
                            {{ d.rows[i].rows[r].GOODS_NME }} </a><a href="/c_GoodsView.htm?ID={{ d.rows[i].rows[r].GOODS_ID }}&NID={{ d.rows[i].rows[r].PUB_NORMS_ID }}"
                                target="_blank" class="J_MakePoint"  >[交易快照]</a>
                    </p>
                    <div class="spec" title="">
                        <span>{{ d.rows[i].rows[r].NORMS_DESC }}</span>
                    </div>
                </div>
            </td>
            <td class="price" title="{{ d.rows[i].rows[r].GOODS_STRIKE_PRICE }}">
                <em class="origin-price special-num">{{ d.rows[i].rows[r].GOODS_STRIKE_PRICE }}</em><br/>
                <i class="special-num">{{ d.rows[i].rows[r].GOODS_STRIKE_PRICE }}</i>
            </td>
            <td class="quantity" title="{{ d.rows[i].rows[r].GOODS_QTY }}">
                <i class="special-num">{{ d.rows[i].rows[r].GOODS_QTY }}</i>
            </td>
            <td class="item-operate">
               
            
            {{# if(d.rows[i].BUYER_RATE_SID=='0'){ }} 
                <span class="skin-white">
                 <a href="/c_CustOrderRate.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" target="_blank" class="J_Rate J_MakePoint tm-btn tm-skin-white" >评价</a>
                 </span>
            {{# }else{ }}  {{#}}}

            {{# if(d.rows[i].rows[r].BUYER_RATE_DT1!=''){ }} 
                 <a href="/c_CustOrderRate.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" target="_blank" class="J_Rate J_MakePoint tm-btn tm-skin-white" >查看评价</a>
                {{# if(d.rows[i].rows[r].BUYER_RATE_DT2==''){ }} 
                <a href="javascript:void(0);" onclick="ShowForm('{{ d.rows[i].rows[r].ORDER_LIST_ID }}');return false;" target="_self" class="J_Rate J_MakePoint" >追加评论</a>
                {{# }else{ }}  {{#}}}
            {{# }else{ }}  {{#}}}


            </td>


            {{#if(r==0){}}

            <td class="amount td-last" rowspan="{{ d.rows[i].rCount }}">
                <p>
                    <em class="real-price special-num">{{ d.rows[i].PAYABLE_AMT }} </em>
                </p>
                <p class="post-type">
                </p>
                <p>
                    (含运费：<i class="special-num">{{ d.rows[i].LOGISTICS_AMT }}</i>)
                </p> 
            </td>
            <td class="trade-status td-last" rowspan="{{ d.rows[i].rCount }}">
            {{ d.rows[i].TRADE_STATUS_TXT }}
            <span><a href="/c_OrderDetail.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" target="_blank" class="detail-link J_MakePoint" >订单详情</a></span> 
            
            {{# if(d.rows[i].TRADE_STATUS_TXT=='卖家已发货'||d.rows[i].TRADE_STATUS_TXT=='交易成功'){ }} 
            <a href="/c_ErrInfo.htm" class="view-logistics J_MakePoint J_Logistics " target="_blank" >查看物流</a>
            {{# }else{ }}  {{#}}}

             
            </td>
            <td class="trade-operate td-last" rowspan="{{ d.rows[i].rCount }}">

            {{# if(d.rows[i].TRADE_STATUS_TXT=='等待买家付款'){ }} 
            <a class="tm-btn tm-skin-orange J_MakePoint  " href="/c_PayCashier.htm?ID={{ d.rows[i].ORDER_FORM_NO }}" target="_blank"   title="付款到支付宝"  >立即付款</a>
           <a class="J_DialogTrigger J_MakePoint"    title="请与买家协商取消订单，每天不得取消超过5笔订单。" href="javascript:void(0);" onclick="doaction('docancelorder','{{ d.rows[i].ORDER_FORM_ID }}');"  >取消订单</a>

            {{# }else{ }}  {{#}}}

            {{# if(d.rows[i].TRADE_STATUS_TXT=='买家已付款'){ }} 
           <a class="J_DialogTrigger J_MakePoint"    title="请与买家协商取消订单，每天不得取消超过5笔订单。" href="javascript:void(0);" onclick="doaction('dotipsellerdeli','{{ d.rows[i].ORDER_FORM_ID }}');"  ></a> 
           <a class="J_DialogTrigger J_MakePoint"    title="请与买家协商取消订单，每天不得取消超过5笔订单。" href="javascript:void(0);" onclick="doaction('toreturncharge','{{ d.rows[i].ORDER_FORM_ID }}');"  >申请退款</a> 

            {{# }else{ }}  {{#}}}


            {{# if(d.rows[i].TRADE_STATUS_TXT=='卖家已发货'){ }} 
            <a href="/c_ConfirmReceipt.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" class="tm-btn tm-skin-orange J_MakePoint " target="_blank" >确认收货</a>

            {{# }else{ }}  {{#}}}




            </td>

            {{#}}}

        </tr>
        
            {{# } }}   
    </tbody>
     

     
        {{# }}} {{# }}}


         
         
        </textarea>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%>
    </div>
    <!-- foot script -->
</body>
</html>
